package com.prs.crm.domain.sale;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.stock.Product;

@Entity
@Table(name = "sale_quotationdetail")
public class QuotationDetail extends BaseEntity {

	private static final long serialVersionUID = 2625159668537269733L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	private String name;

	@ManyToOne
	private Product product;

	@ManyToOne
	private QuotationSheet quotationsheet;

	/**
	 * 原价
	 */
	private Double originalCost;

	/**
	 * 现价
	 */
	private Double nowCost;
	/**
	 * 数量
	 */
	private int quotationNum;
	/**
	 * 折扣
	 */
	private Double rebate;
	/**
	 * 总价
	 */
	private Double totalPrice;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public QuotationSheet getQuotationsheet() {
		return quotationsheet;
	}

	public void setQuotationsheet(QuotationSheet quotationsheet) {
		this.quotationsheet = quotationsheet;
	}

	public Double getOriginalCost() {
		return originalCost;
	}

	public void setOriginalCost(Double originalCost) {
		this.originalCost = originalCost;
	}

	public Double getNowCost() {
		return nowCost;
	}

	public void setNowCost(Double nowCost) {
		this.nowCost = nowCost;
	}

	public int getQuotationNum() {
		return quotationNum;
	}

	public void setQuotationNum(int quotationNum) {
		this.quotationNum = quotationNum;
	}



	public Double getRebate() {
		return rebate;
	}

	public void setRebate(Double rebate) {
		this.rebate = rebate;
	}

	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}

}
